import getApiData from "@/services/cpasRequest";

export async function getSubjectSDB(params: any) {
    try {
        const res = await getApiData("account.assist.getDataList", params);
        if (res.ok) {
            return Promise.resolve({
                data: res.data,
                success: true,
            });
        }
        return Promise.resolve({
            data: [],
            success: false,
        });
    } catch (error) {
        return Promise.resolve({ data: error, ok: false, code: 100000 });
    }
}
